//=============================================================================
/**
 * @file	pkthln_run_sub.h
 * @brief	マラソンサブ画面
 * @date	2008.07.02
 */
//=============================================================================

#ifndef	__PKTHLN_RUN_SUB_H__
#define	__PKTHLN_RUN_SUB_H__

#include "common.h"
#include "../pkthln_clact.h"

#define SUB_DISP_DISTANCE	(512 * FX32_ONE)

typedef struct RUN_SUB_CNT_tag * RUN_SUB_CNT_PTR;

typedef struct ICON_INFO_tag
{
	u16 MonsNo;
	u16 Form;
}ICON_INFO;

#include "../../pokethlon.h"

extern RUN_SUB_CNT_PTR RunSub_Init( const int inHeapID,
									GF_BGL_INI *inBgl,
									PKTHLN_PTR pkthlnPtr );
extern void RunSub_Free( RUN_SUB_CNT_PTR ptr );
extern void RunSub_SetBG(RUN_SUB_CNT_PTR ptr);

extern void RunSub_SetObj(RUN_SUB_CNT_PTR ptr, PKTHLN_CLACT_CNT_PTR pActCntPtr);
extern void RunSub_SetPokeAct( 	RUN_SUB_CNT_PTR ptr, PKTHLN_CLACT_CNT_PTR pActCntPtr,
								CMN_RES_CNT_PTR cmm_res_ptr	);
extern void RunSub_SetupPokeIcon( RUN_SUB_CNT_PTR ptr, const ICON_INFO *inIconInfo );

extern void RunSub_SetIconPos(RUN_SUB_CNT_PTR ptr, const u8 inNetID, const int inLen);
extern void RunSub_SetupPokeGraphic(RUN_SUB_CNT_PTR ptr, const MONS_INFO *inInfoList);
extern void RunSub_TransPokeGra( RUN_SUB_CNT_PTR ptr, const u8 inTarget, const u8 inTargetPoke);
extern void RunSub_TransPokeIcon(RUN_SUB_CNT_PTR ptr, const u8 inNetID, const u8 inEntryIdx);
extern void RunSub_FillRound(RUN_SUB_CNT_PTR cnt_ptr, const u8 inRound, const u16 inLen);
extern BOOL RunSub_PokeChangeMain(RUN_SUB_CNT_PTR ptr, const u8 inRunPokeIdx);
extern BOOL RunSub_NpcPokeChangeMain(RUN_SUB_CNT_PTR ptr, const u8 inNpcIdx);
extern void  RunSub_SetDrawSubDispIcon(RUN_SUB_CNT_PTR ptr,
		const u8 inNetID, const u8 inPokeIdx, const BOOL inChg, const int inState);
extern void  RunSub_SetDrawSweat(RUN_SUB_CNT_PTR ptr,const u8 inState1, const u8 inState2);
extern void RunSub_DispTime(RUN_SUB_CNT_PTR ptr, const u16 inTime);
extern void RunSub_SetPriority( RUN_SUB_CNT_PTR ptr, const int inMyNetID);
extern u8 RunSub_GetEntryIdx( RUN_SUB_CNT_PTR ptr, const int inIdx);

#endif	//__PKTHLN_RUN_SUB_H__